package java1;

import java.util.Scanner;

public class T5 {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int num=sc.nextInt();
			if(num==0) System.out.println(32);
			else{
				String str=Integer.toBinaryString(num);
				System.out.println(32-str.length());
			}
		}
	}

}
